MapClient

interface MapClient

Interface for the MapClient.

Functions

scheduleRepaint
Link copied to clipboard
abstract fun scheduleRepaint()
A callback that notifies the client that the map contains updated information, and thus requires a new render to be scheduled.Note: this callback might be invoked from different threads and it blocks rendering, soclients shall avoid performing any extra operations in this callback.
scheduleTask
Link copied to clipboard
abstract fun scheduleTask(@NonNull() task: Task)
Requests client to schedule task to be executed on client's scheduling system.Note: Implementation of this method is required when client uses dedicated rendering thread other then the threadwhere Map instance is constructed.Note: Client must clean the pending tasks from the task queue after the renderer is destroyed.